home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-13 / thesrc10.zip / MAKEFILE < prev    next >
Text File  |  1992-08-12  |  8KB  |  202 lines

  1. #
  2. #########################################################################
  3. #
  4. # makefile for The Hessling Editor (THE)
  5. #
  6. #########################################################################
  7. #
  8. #  This software is Copyright (c) 1991,1992 by Mark Hessling
  9. #
  10. #  Permission is hereby granted to copy, distribute or otherwise
  11. #  use any part of this package as long as you do not try to make
  12. #  money from it or pretend that you wrote it.  This copyright
  13. #  notice must be maintained in any copy made.
  14. #
  15. #  Use of this software constitutes acceptance for use in an AS IS
  16. #  condition. There are NO warranties with regard to this software.
  17. #  In no event shall the author be liable for any damages whatsoever
  18. #  arising out of or in connection with the use or performance of this
  19. #  software.  Any use of this software is at the user's own risk.
  20. #
  21. #  If you make modifications to this software that you feel
  22. #  increases it usefulness for the rest of the community, please
  23. #  email the changes, enhancements, bug fixes as well as any and
  24. #  all ideas to me. This software is going to be maintained and
  25. #  enhanced as deemed necessary by the community.
  26. #
  27. #               Mark Hessling
  28. #               M.Hessling@itc.gu.edu.au
  29. #
  30.  
  31. VER = 1-0
  32.  
  33. #########################################################################
  34. # Borland C++ 2.0 compiler on DOS
  35. #########################################################################
  36. SRC    = c:/the
  37. PROJ   = the.exe
  38. OBJ    = obj
  39. CC     = bcc
  40. CFLAGS = -O -w-aus -w-par -ml -DSYSVcurses -DCOLOR_CURSES -I$(SRC)
  41. LD     = tlink @dos-trc.rsp
  42. CHMOD  = echo done
  43. XTRAOBJ= getopt.obj
  44. MAN    = manext.exe
  45. MANLD  = tlink manext+getopt+c:\borlandc\lib\wildargs;
  46. #########################################################################
  47. # MSC compiler on DOS
  48. #########################################################################
  49. #SRC    = c:/the
  50. #PROJ   = the.exe
  51. #OBJ    = obj
  52. #CC     = cl
  53. #CFLAGS = -O -AL -D__MSC__ -D__MSDOS__ -DSYSVcurses -DCOLOR_CURSES -DSTDC_HEADERS -I$(SRC)
  54. #LD     = link @dos-msc.rsp
  55. #CHMOD  = echo done
  56. #XTRAOBJ= getopt.obj
  57. #MAN    = manext.exe
  58. #MANLD  = link manext+getopt+c:\c600\lib\setargv,,,c:\c600\lib\Llibce /CO /NOE /NOI /NOD;
  59. #########################################################################
  60. # MSC compiler on OS/2
  61. #########################################################################
  62. #SRC    = c:/the
  63. #PROJ   = the.exe
  64. #OBJ    = obj
  65. #CC     = cl
  66. #CFLAGS = -O -AL -D__MSC__ -D__OS2__ -DSYSVcurses -DCOLOR_CURSES -DSTDC_HEADERS -DUSE_OS2_H -I$(SRC)
  67. #LD     = link @os2-msc.rsp
  68. #CHMOD  = echo done
  69. #XTRAOBJ= getopt.obj
  70. #MAN    = manext.exe
  71. #MANLD  = link manext+getopt+c:\c600\os2lib\setargv,,,c:\c600\os2lib\Llibce,manext.def /NOE /NOI /NOD;
  72. #########################################################################
  73. # BSD compiler on Sun
  74. #########################################################################
  75. #SRC    = .
  76. #PROJ   = the
  77. #OBJ    = o
  78. #CC     = /usr/bin/cc
  79. #CFLAGS = -g -DSUN -DBSD -I$(SRC)
  80. #LD     = $(CC) -o $(PROJ) $(OBJS) -lcurses -ltermcap
  81. #CHMOD  = chmod 755
  82. #XTRAOBJ= bsd.o
  83. #MAN    = manext
  84. #MANLD  = $(CC) -o $(MAN) manext.o
  85. #########################################################################
  86. # System V compiler on Sun
  87. #########################################################################
  88. #SRC    = .
  89. #PROJ   = the
  90. #OBJ    = o
  91. #CC     = /usr/5bin/cc
  92. #CFLAGS = -g -DSUN -DSYSVcurses -I$(SRC)
  93. #LD     = $(CC) -o $(PROJ) $(OBJS) -lcurses
  94. #CHMOD  = chmod 755
  95. #XTRAOBJ=
  96. #MAN    = manext
  97. #MANLD  = $(CC) -o $(MAN) manext.o
  98. #########################################################################
  99. # gcc compiler on Sun
  100. #########################################################################
  101. #SRC    = ..
  102. #PROJ   = the
  103. #OBJ    = o
  104. #CC     = /usr/local/bin/gcc
  105. #CFLAGS = -g -DSUN -DSYSVcurses -DPROTO -traditional -I$(SRC) -I/usr/5include
  106. #LD     = $(CC) -o $(PROJ) $(OBJS) -L/usr/5lib -lcurses
  107. #CHMOD  = chmod 755
  108. #XTRAOBJ=
  109. #MAN    = manext
  110. #MANLD  = $(CC) -o $(MAN) manext.o
  111. #########################################################################
  112. # System V compiler on System V R4 systems
  113. #########################################################################
  114. #SRC    = .
  115. #PROJ   = the
  116. #OBJ    = o
  117. #CC     = /bin/cc
  118. #CFLAGS = -g -DSYSV386 -DSYSVcurses -DCOLOR_CURSES -I$(SRC)
  119. #LD     = $(CC) -o $(PROJ) $(OBJS) -lcurses
  120. #CHMOD  = chmod 755
  121. #XTRAOBJ=
  122. #MAN    = manext
  123. #MANLD  = $(CC) -o $(MAN) manext.o
  124. #########################################################################
  125. # System V compiler on System V
  126. #########################################################################
  127. #SRC    = .
  128. #PROJ   = the
  129. #OBJ    = o
  130. #CC     = /bin/cc
  131. #CFLAGS = -g -DSYSV386 -DSYSVcurses -DCOLOR_CURSES -DNO_RENAME -I$(SRC)
  132. #LD     = $(CC) -o $(PROJ) $(OBJS) -lcurses
  133. #CHMOD  = chmod 755
  134. #XTRAOBJ= rename.o
  135. #MAN    = manext
  136. #MANLD  = $(CC) -o $(MAN) manext.o
  137. #########################################################################
  138. #
  139. #
  140. # Object files
  141. #
  142. OBJ1 = comm1.$(OBJ) comm2.$(OBJ) comm3.$(OBJ) comm4.$(OBJ) comm5.$(OBJ) \
  143.     commsos.$(OBJ) default.$(OBJ) edit.$(OBJ) error.$(OBJ) \
  144.     nonansi.$(OBJ) show.$(OBJ) the.$(OBJ) util.$(OBJ)
  145. OBJ2 = commutil.$(OBJ)
  146. OBJ3 = getch.$(OBJ)
  147. OBJ4 = $(XTRAOBJ)
  148. OBJ5 = fnmatch.$(OBJ)
  149. OBJ6 = directry.$(OBJ) file.$(OBJ)
  150. OBJS = $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4) $(OBJ5) $(OBJ6)
  151.  
  152. COMM = $(SRC)/comm?.c $(SRC)/commsos.c
  153. #
  154. #########################################################################
  155. $(PROJ):    $(OBJS)
  156.         $(LD)
  157.         $(CHMOD) $(PROJ)
  158. #########################################################################
  159. %.$(OBJ):$(SRC)/%.c
  160.     $(CC) $(CFLAGS) -c $(SRC)/$*.c
  161. #########################################################################
  162. $(OBJ1):    $(SRC)/the.h
  163. $(OBJ2):    $(SRC)/the.h $(SRC)/command.h
  164. $(OBJ3):    $(SRC)/getch.h
  165. $(OBJ5):    $(SRC)/the.h $(SRC)/fnmatch.h
  166. $(OBJ6):    $(SRC)/directry.h
  167. #
  168. #########################################################################
  169. manual:    $(MAN) $(COMM)
  170.         manext -o the.man $(SRC)/OVERVIEW $(COMM)
  171. #
  172. $(MAN):    $(XTRAOBJ) manext.$(OBJ)
  173.         $(MANLD)
  174.         $(CHMOD) $(MAN)
  175. #########################################################################
  176. zoosrc:
  177.         zoo a the_$(VER)s.zoo COPYING README.src README.exc OVERVIEW
  178.         zoo a the_$(VER)s.zoo the.c the.h comm*.c util.c bsd.c command.h default.c directry.c
  179.         zoo a the_$(VER)s.zoo directry.h edit.c error.c file.c fnmatch.c fnmatch.h getch.c
  180.         zoo a the_$(VER)s.zoo getch.h getopt.c memtrack.h nonansi.c show.c vax.c key.h trace.c
  181.         zoo a the_$(VER)s.zoo *.hlp *.rsp *.def makefile manext.c make.exe
  182. #########################################################################
  183. zipsrc:
  184.         zip  the_$(VER)s.zip COPYING README.src README.exc OVERVIEW
  185.         zip  the_$(VER)s.zip the.c the.h comm*.c util.c bsd.c command.h default.c directry.c
  186.         zip  the_$(VER)s.zip directry.h edit.c error.c file.c fnmatch.c fnmatch.h getch.c
  187.         zip  the_$(VER)s.zip getch.h getopt.c memtrack.h nonansi.c show.c vax.c key.h trace.c
  188.         zip  the_$(VER)s.zip *.hlp *.rsp *.def makefile manext.c make.exe
  189. #########################################################################
  190. zoodos:
  191.         zoo a thedos_e.zoo COPYING README.exc the.exe the.man dos.hlp
  192. #########################################################################
  193. zipdos:
  194.         zip  thedos_e.zip COPYING README.exc the.exe the.man dos.hlp
  195. #########################################################################
  196. zooos2:
  197.         zoo a theos2_e.zoo COPYING README.exc the.exe the.man os2.hlp
  198. #########################################################################
  199. zipos2:
  200.         zip  theos2_e.zip COPYING README.exc the.exe the.man os2.hlp
  201. #########################################################################
  202.